#include <stdio.h>
int main()
{
    int year, a;
    while ((1))
    {

        scanf("%d", &year); // 不要总是忘记加地址符
        if (year % 4 == 0 && year % 100 != 0)
        {
            printf("是闰年%d", year);
        }
        else if (year % 100 == 0 && year % 400 == 0)
        {
            printf("是闰年%d", year);
        }
        else if (year == 0)
        {
            break;
        }
        else
            printf("不是闰年%d", year);
    }
}